package com.codechen.scaffold.admin.controller;

import com.codechen.scaffold.admin.domain.vo.SysUserVo;
import com.codechen.scaffold.common.domain.Result;
import com.codechen.scaffold.common.domain.UserInfo;
import com.codechen.scaffold.common.holder.UserInfoHolder;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : wuweihong
 * @desc : TODO  请填写你的功能描述
 * @date : 2025-06-16
 */

@RestController
@RequestMapping("/")
@Api(tags = "用户登录信息")
public class UserInfoController {

 @ApiOperation(value = "获取当前登录用户信息")
 @GetMapping("/getInfo")
 public Result<UserInfo> getInfo() {
  return Result.success(UserInfoHolder.getUserInfo());
 }

}
